


//
//  ZMsgDetailViewController.m
//  ZQLearn
//
//  Created by macfeel on 2019/5/10.
//  Copyright © 2019 macfeel. All rights reserved.
//

#import "ZMsgDetailViewController.h"
#import <WebKit/WebKit.h>
@interface ZMsgDetailViewController ()<WKUIDelegate,WKNavigationDelegate>



@end

@implementation ZMsgDetailViewController

- (void)viewDidLoad {
    [super viewDidLoad];
     [self.navigationItem setItemWithTitle:@"消息详情" textColor:kNavigationTitleColor fontSize:18 itemType:center];
    self.view.backgroundColor = kWhiteColor;
    self.titleLab.text = self.ttitle?:@"";
    self.timeLab.text = self.pushtime?:@"";
//    UILabel *label = [UILabel alloc]initWithFrame:CGRectMake(0, 0, 100, 30);
    
    WKWebView *webView = [[WKWebView alloc] initWithFrame:CGRectMake(10, 80, ScreenWidth-20, ScreenHeight)];
    
    ///webview 参数链接  url参数
    
    NSString *urlString = [NSString stringWithFormat:@"http://sdxx.bestzhiqinweike.com/app/findSysMessageDetail?id=%@",self.cid];
    YYLog(@"%@",urlString);
    [webView loadRequest: [NSURLRequest requestWithURL:[NSURL URLWithString:urlString]]];
    webView.UIDelegate = self;
    webView.navigationDelegate = self;
    [self.view addSubview:webView];
    // Do any additional setup after loading the view from its nib.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
